import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    routes: [
        {
            path:'/',
            redirect:'/index'
        },
        {
            path: '/index',
            name: 'index',
            component: () => import('../views/index.vue'),
            children:[
                {
                    path:'/memberlist',
                    component: () => import('../views/memberlist.vue'),
                },
                {
                    path:'/order-list',
                    component: () => import('../views/order-list.vue'),
                }
            ]
        },
        {
            path: '/login',
            name: 'login',
            component: () => import('../views/login.vue')
        },
    ],
   
})